<extend name="Public/base" />
<block name="head_css">
	<link rel="stylesheet" href="__CUSTOMER__/css/order.css?v={:C('TKE_VERSION')}"/><!--ignore-->
</block>
<block name="content">
    <!-- 主体 -->
    <div class="g-bd">
        <div class="row row-1">
            <h1>我的订单</h1>
        </div>

        <div class="row row-2">
          <notempty name="order_list">
            <eq name="order_list.status" value="1">
              <table>
                <tr>
                    <th style="text-align:left">商品信息</th>
                    <th width="8%">订单编号</th>
                    <th width="15%">购买时间</th>
                    <th width="8%">付款金额</th>
                    <th width="8%">订单状态</th>
                    <th width="8%">操作</th>
                </tr>
                <volist name="order_list.data.list" id="vo">
                    <tr>
                      <td style="text-align:left" title="{$vo.goods_name} {$vo.goods_title}">
                      {$vo.goods_name}<br/>
                      <font>{$vo.goods_title}</font>
                      </td>
                      <td>{$vo.order_id}</td>
                      <td>{$vo.create_time|time_format}</td>
                      <td>{$vo.order_amount}</td>
                      <td>
                        <switch name="vo.order_status">
                          <case value="0">
                            待支付
                          </case>
                          <case value="1">
                            支付失败
                          </case>
                          <case value="2">
                            已付款
                          </case>
                          <case value="3">
                            已退款
                          </case>
                          <case value="4">
                            已消费
                          </case>
                          <case value="5">
                            申请核销
                          </case>
                          <case value="6">
                            核销完成
                          </case>
                          <case value="7">
                            已结算
                          </case>
                          <case value="9">
                            申请退款
                          </case>
                          <default />未知
                        </switch>
                      </td>
                      <td>
                        <if condition="$vo['order_status'] eq 0 || $vo['order_status'] eq 1">
                            <a href="{:U('Shop/pay',array('id'=>$vo['order_id']))}" style="color:#f60;">去支付</a>
                        </if>
                      </td>
                  </tr>
                </volist>
              </table>
            </eq>
            <eq name="order_list.status" value="0">
              <p align="center" style="color:#ccc;font-size:16px;margin-top:30px;">{$order_list.info}</p>
            </eq>
          </notempty>
        </div>
        <div class="row row-2 mb20">
            {$_page}
        </div>
    </div>
  </block>